Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 8 - Light Objects / Light Objects Reference
Light Objects Routines / Managing Point Lights


Q3PointLight_SetAttenuation

You can use the Q3PointLight_SetAttenuation function to set the attenuation of a point light.

TQ3Status Q3PointLight_SetAttenuation (
TQ3LightObject light, 
TQ3AttenuationType attenuation);
light
A point light object.
attenuation
The desired type of attenuation of the light. See "Light Attenuation Values" on page 8-9 for a description of the constants that can be passed in this parameter.
DESCRIPTION
The Q3PointLight_SetAttenuation function sets the attenuation value of the point light specified by the light parameter to the value passed in the attenuation parameter.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996